package com.example.jsondemo.repository;

import com.example.jsondemo.dto.RuleDefinition;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface RuleDefinitionRepository extends CrudRepository<RuleDefinition, Integer> {

    List<RuleDefinition> findByResourceContextEqualsAndRoleIdEqualsOrResourceContextEqualsAndRoleIdIn
            (String wildcardResourceContext, String roleId, String resourceContext, List<String> roleIds);
}
